allStudent={}

class student:
    def __init__(self,name,c,s1,s2=None):
        self.name=name
        self.c=c
        self.s1=s1
        if c=='2班':
            self.s2=s2

        allStudent[name]=self

    def query(self):
        if self.c=='2班':
            return '数学:'+str(self.s1)+' 语文:'+str(self.s2)
        else:
            return '数学:'+str(self.s1)

student('方糖','1班',9)
student('麻烦','1班',150)
student('DARK','2班',142,129)
student('肖肖','2班',149,150)

def findStudent(name):
    return allStudent[name]

def f():
    n=input('请输入要查询的学生姓名：')
    s=findStudent(n)
    print(s.query())

def s():
    sum=0
    for s in allStudent.values():
        sum=sum+s.s1
    return sum/len(allStudent)

def s2():
    sum=0
    num=0
    for s in allStudent.values():
        if s.c=='2班':
            sum=sum+s.s2
            num=num+1
    return sum/num

while True:
    o=input('请输入你想要使用的功能')
    if o=='添加学生':
        o=input('请输入你想要添加的学生的班级')
        pass
    elif o=='查询学生个数':
        pass
    elif o=='查询最高分':
        pass
    elif o=='查询最低分':
        pass
    elif o=='查询平均分':
        o=input('请输入要查询的科目')
        pass
